package com.maimao.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * 过期订单，取消失败的订单，由定时任务重新进行取消处理
 *
 * @author MaoLin Wang
 * @date 2021/4/6 4:12 下午
 */
@Setter
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("mm_order_processing")
public class OrderProcessing implements Serializable {

    /**
     * 订单id
     */
    @TableId(type = IdType.INPUT)
    private Long id;

    @TableField(value = "`status`")
    private Integer status;

    @TableField("retryCnt")
    private Integer retryCnt;

    @Override
    public String toString() {
        return "OrderProcessing{" +
                "id=" + id +
                ", status=" + status +
                ", retryCnt=" + retryCnt +
                '}';
    }
}
